package com.jjyu.controller;


import com.jjyu.entity.Feedback;
import com.jjyu.entity.Result;
import com.jjyu.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feedback")
public class FeedbackController {

    @Autowired
    FeedbackService feedbackService;


    @PostMapping("/add")
    public Result addfeedback(@RequestBody Feedback feedback){

        int status = feedbackService.addFeedback(feedback);
        return Result.success();
    }


}
